Skip to content

Conversation

Copy link

Copilot AI commented Jan 27, 2026

Windows 10's ExplorerCommandHandler for permanent delete (GUID {E9571AB2-AD92-4ec6-8924-4E5AD33790F5}) doesn't work with the lnkfile registry class, causing "Interface not registered" errors. Windows 11 handles this correctly.

Changes

Added Win10-specific registry entry for lnkfile class in EnhanceMenusDic.xml:

<Group>
  <Text Value='lnk文件'/>
  <Text Value='lnk File'>
    <Culture>en-US</Culture>
  </Text>
  <RegPath>HKEY_CLASSES_ROOT\lnkfile</RegPath>
  <Shell>
    <Item KeyName='Windows.PermanentDelete'>
      <OSVersion Compare="&gt;=">6.2</OSVersion>
      <OSVersion Compare="&lt;">10.0.22000</OSVersion>  <!-- Win10 only -->
      <Value>
        <REG_SZ MUIVerb='@shell32.dll,-37394' Icon='shell32.dll,-240'
                ExplorerCommandHandler='{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}'/>
      </Value>
    </Item>
  </Shell>
</Group>

The entry mirrors the existing AllFilesystemObjects configuration but applies specifically to shortcuts on Windows versions >= 6.2 and < 10.0.22000 (Win8/8.1/10).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • learn.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug]: win10下 永久删除 对快捷方式的删除失效</issue_title>
<issue_description>在win10里面,永久删除 这个功能对快捷方式的删除好像是无效的。在win10里面,一个文本文档或者文件夹,或者任何一个文件,生成一个快捷方式,然后用右键生成的 永久删除 功能,来删除这个快捷方式的文件 ,会弹出一个对话窗口,提示 没有注册接口 ,不能删除。如果不是生成的快捷方式,随便什么文件,用 永久删除 功能 ,是可以的,没有问题。

这个右键 永久删除 功能,是在本软件的 其他规则 增强菜单 里面的 所有对象 这个里面的 永久删除功能添加的。

同样的方法,在win11里面,没有任何问题,生成任何的快捷方式,都可以用 永久删除 功能来删除。</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix permanent delete functionality for shortcuts in Windows 10 Fix permanent delete failing on shortcuts in Windows 10 Jan 27, 2026
Copilot AI requested a review from Jack251970 January 27, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: win10下 永久删除 对快捷方式的删除失效

2 participants